package cn.elricyu.tt.ui;

public class ConfDialogUtil {
	private ConfDialogUtil() {
	}

	public static int getWarFriendLevel(int selectIndex) {
		int level = 0;
		switch (selectIndex) {
		case 1:
			level = 20;
			break;
		case 2:
			level = 30;
			break;
		case 3:
			level = 40;
			break;
		case 4:
			level = 50;
			break;
		case 5:
			level = 55;
			break;
		}
		return level;
	}

	public static int getWarFriendLevelIndex(int level) {
		int index = 0;
		switch (level) {
		case 20:
			index = 1;
			break;
		case 30:
			index = 2;
			break;
		case 40:
			index = 3;
			break;
		case 50:
			index = 4;
			break;
		case 55:
			index = 5;
			break;
		}
		return index;
	}
}
